<div class='fui-page  fui-page-current'>
    <div class="fui-header">
		<div class="title">学生资料</div> 
		<div class="fui-header-right">&nbsp;</div>
	</div>
	<div class='fui-content'>
		<div class="weui_cells_title">选择操作类型</div>
		<div class="weui_cells weui_cells_radio" style="padding:0.5rem">
					<div class="fui-cell-label" style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
						<input type="radio" ng-click="pagedata.post.type=0" class="fui fui-radio fui-radio-danger verify-radio" name="radio2" value="0"> 编辑信息
					</div>
					<div class="fui-cell-label" style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
						<input type="radio" ng-click="pagedata.post.type=1" class="fui fui-radio fui-radio-danger verify-radio" name="radio2" value="1"> 绑定老学员
					</div>
		</div>
		<div ng-if="pagedata.post.type==0" class="fui-cell-group"> 
			<div class="fui-cell must ">
				<div class="fui-cell-label ">学生姓名</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置昵称" ng-model="pagedata.post.name" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">手机号</div>
				<div class="fui-cell-info">
					<input ng-if="pagedata.bindmobile || !pagedata.post.mobile" type="text" class='fui-input' placeholder="设置手机号" ng-model="pagedata.post.mobile" />
					<input ng-if="!pagedata.bindmobile" type="text" readonly="true" class='fui-input' style="background:#f2f2f2" ng-model="pagedata.post.mobile" />
				</div>
				<div ng-if="pagedata.post.login_type>0 && !pagedata.bindmobile && pagedata.post.oldmobile" class="fui-cell-remark noremark"><a class="btn btn-default btn-default-o btn-sm" ng-click="pagedata.bindmobile=true;pagedata.post.mobile=''">解绑手机</a></div>
				<div ng-if="pagedata.post.login_type>0 && (pagedata.bindmobile || !pagedata.post.oldmobile)" class="fui-cell-remark noremark"><a class="btn btn-default btn-default-o btn-sm" ng-click="tool.mobile_code({'mobile':pagedata.post.mobile,'oldmobile':pagedata.post.oldmobile},'sms_code')" id="sms_code">获取验证码</a></div>
			</div>
			<div ng-if="pagedata.post.login_type>0 && (pagedata.bindmobile || !pagedata.post.oldmobile)" class="fui-cell must ">
				<div class="fui-cell-label ">验证码</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="请输入验证码" ng-model="pagedata.post.smscode" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">学生账号</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置账号" ng-model="pagedata.post.username" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">登录密码</div>
				<div class="fui-cell-info"><input type="password" class='fui-input' placeholder="设置密码" ng-model="pagedata.post.password" /></div>
			</div>
			<div class="fui-cell must">
				<div class="fui-cell-label ">所属区域</div>
				<div class="fui-cell-info">
					 <select class="weui_select" name="cateid2" ng-model="pagedata.post.area_id">
                        <option ng-repeat="q in pagedata.areas" value="{{q.id}}">{{q.title}}</option>
                    </select>
				</div>
			</div>
			<div class="fui-cell must">
				<div class="fui-cell-label ">所属学校</div>
				<div class="fui-cell-info">
					 <select class="weui_select" name="cateid2" ng-model="pagedata.post.storeid">
                        <option ng-repeat="q in pagedata.areas[pagedata.post.area_id].stores" value="{{q.id}}">{{q.title}}</option>
                    </select>
				</div>
			</div>
		</div>
		<div ng-if="pagedata.post.type==1" class="fui-cell-group"> 
			<div class="fui-cell must ">
				<div class="fui-cell-label ">学生账号</div>
				<div class="fui-cell-info"><input type="text" class='fui-input' placeholder="设置账号" ng-model="pagedata.post.username" /></div>
			</div>
			<div class="fui-cell must ">
				<div class="fui-cell-label ">登录密码</div>
				<div class="fui-cell-info"><input type="password" class='fui-input' placeholder="设置密码" ng-model="pagedata.post.password" /></div>
			</div>
		</div>
		<a href='javascript:;' ng-click="post(pagedata.post,'post')" class='btn btn-success block'>{{pagedata.post.type==1?'确认修改':'确认绑定'}}</a>
	</div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
